package edu.hgnc.shouldSkip;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Configuration;

@Conditional({WindowCondition.class})
@Configuration
public class BeanConfig {

	@Bean(name = "bill")
	@Conditional({WindowCondition.class})
	public Person person1(){
		return new Person("比尔盖茨",66);
	}

	@Conditional({LinuxCondition.class})
	@Bean("linus")
	public Person person2(){
		return new Person("林纳斯",48);
	}
}
